﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities.Auditing;

namespace Acme.BookStore.Purchase.Customergoods
{
    public class GoodsModel:AuditedAggregateRoot<Guid>
    {
        /// <summary>
        /// 货主编码
        /// </summary>
        public string OwnerCode { get; set; }

        /// <summary>
        /// 商品编码
        /// </summary>
        public string ProductCode { get; set; }

        /// <summary>
        /// SKU 编码
        /// </summary>
        public string Sku { get; set; }

        /// <summary>
        /// 商品名
        /// </summary>
        public string ProductName { get; set; }

        /// <summary>
        /// 单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 温层
        /// </summary>
        public string TemperatureZone { get; set; }

        /// <summary>
        /// 条码
        /// </summary>
        public string Barcode { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public string Specification { get; set; }

        /// <summary>
        /// 品牌
        /// </summary>
        public string Brand { get; set; }

        protected GoodsModel()
        {
        }

        public GoodsModel(Guid id,string ownerCode, string productCode, string sku, string productName, string unit, string temperatureZone, string barcode, string specification, string brand):base(id)
        {
            OwnerCode = ownerCode;
            ProductCode = productCode;
            Sku = sku;
            ProductName = productName;
            Unit = unit;
            TemperatureZone = temperatureZone;
            Barcode = barcode;
            Specification = specification;
            Brand = brand;
        }
    }
}
